package com.example.birdfriends;

import com.example.birdfriends.controller.WebSocketServerController;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"com.example.birdfriends"})
@MapperScan(basePackages = "com.example.birdfriends.dao")
public class BirdFriendsApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(BirdFriendsApplication.class, args);
        WebSocketServerController.setApplicationContext(applicationContext);
    }

}
